<?php
require '../member/include/common.inc.php';

if($dosubmit){
        $cookietime = 2592000; //cookie保存一个月
        $info = $member->login($username, $password, $cookietime);
        if(!$info){
            err($member->msg());
        }else{
            $_SESSION['userid'] = $userid;
            $_SESSION['username'] = $username;
            if($forward){
                header("location:$forward");
            }else{
                header("location:index.php?file=index$cityparam");
            }
        }
}

include mtpl('login');
?>